package subject.tengxun.middle.easy;

/**
 * 功能：
 * 作者：yedou
 * 日期：2025/4/8 20:59
 */
class ListNode {
    int val;
    ListNode next;

    ListNode() {
    }

    ListNode(int val) {
        this.val = val;
    }

    ListNode(int val, ListNode next) {
        this.val = val;
        this.next = next;
    }
}

public class reverseList {
    public static void main(String[] args) {
//        ListNode prev = null;
//        ListNode current = head;
//        while(current != null){
//            ListNode next = current.next;
//            current.next = prev;
//            prev = current;
//            current = next;
//        }
//        return prev;
    }
}